package CronService

import (
	"arabApi/app/api/models/CronModel"
	"arabApi/app/api/requests/CronRequest"
)

func List() []CronModel.CronJob {
	return CronModel.List()
}

func FindOne(id int64) CronModel.CronJob {
	return CronModel.FindOne(id)
}

func Edit(cronreq CronRequest.CronJob) (int64, error) {
	return CronModel.Edit(cronreq)
}

func Del() {
	CronModel.Del()
}

func Add(cronReq CronRequest.CronJob) (int64, error) {
	return CronModel.Add(cronReq)
}
